package com.hsj;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hsj.domain.Book;
import com.hsj.service.BookService;
import com.hsj.service.IBookService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class IBookServiceTestCase {


    @Autowired
    private IBookService ibookService;
  @Test
    void testgetById(){
      ibookService.list();
  }

    @Test
    void testPage(){
        Page<Book> bookPage = new Page<>(2, 5);
        ibookService.page(bookPage);
    }


}
